package com.gosophia.dataDictionary.entity;

import javax.persistence.Id;

import com.gosophia.commons.persistence.AbstractEntity;
import com.gosophia.commons.persistence.BusinessKey;

/**
 * 数据字典--数据值实体类
 * 
 * @author nana
 * 
 */
public class DataValue extends AbstractEntity implements java.io.Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**
     * 实体主键dataValueId
     */
    private Long dataValueId;

    /**
     * 版本控制，支持并发操作
     */
    private Long version;

    /**
     * 数据值
     */
    private String value;

    /**
     * 数据值的key
     */
    private String key;

    /**
     * 排序号
     */
    private int orderIndex;

    /**
     * 启用标记
     */
    private boolean isEnabled;
    
    /**
     * 数据值描述
     */
    private String dataValueDescliption;
    
    /**
     * 数据值所属词条
     */
    private DataEntry dataEntry;

    @Id
    @BusinessKey
    public Long getDataValueId() {
        return dataValueId;
    }

    public void setDataValueId(Long dataValueId) {
        this.dataValueId = dataValueId;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
    
    public DataEntry getDataEntry() {
        return dataEntry;
    }

    public void setDataEntry(DataEntry dataEntry) {
        this.dataEntry = dataEntry;
    }

    public int getOrderIndex() {
        return orderIndex;
    }

    public void setOrderIndex(int orderIndex) {
        this.orderIndex = orderIndex;
    }

    public boolean isIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(boolean isEnabled) {
        this.isEnabled = isEnabled;
    }

    public String getDataValueDescliption() {
        return dataValueDescliption;
    }

    public void setDataValueDescliption(String dataValueDescliption) {
        this.dataValueDescliption = dataValueDescliption;
    }
    
}

// /:~
